function addPercent(percent, num) {
    percent = percent.substring(0, percent.indexOf("%"));
    return parseInt(percent) + num;
}

function minusPercent(percent, num) {
    percent = percent.substring(0, percent.indexOf("%"));
    return parseInt(percent) - num;
}

function swap(v1, v2) {
    let temp = v1;
    v1 = v2;
    v2 = temp;
}